// select下拉框样式
.select_dark_popper {
  background: #10202ecc !important;
  padding: 0 5px !important;
  .el-select-dropdown {
    .is-hovering {
      color: #38ffce !important;
      background-color: rgba(101, 162, 255, 0.1); // 下拉hover背景
      background: #777f911a;
      box-shadow: inset 0 0 2px 1px #ffffff66;
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 4px;
        border: 1px solid transparent;
        background: linear-gradient(45deg, #00e1bb, #008ddc) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box,
          linear-gradient(#fff 0 0);
        -webkit-mask-composite: destination-out;
        mask-composite: exclude;
      }
    }
  }
  .el-select-dropdown__item {
    color: #ffffff !important;
    margin: 10px 0;
    display: flex;
    align-items: center;
  }
  .el-select-dropdown__item.is-selected {
    color: #38ffce !important; // 选中
    font-weight: bold;
    background: #777f911a;
    box-shadow: inset 0 0 2px 1px #ffffff66;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 4px;
      border: 1px solid transparent;
      background: linear-gradient(45deg, #00e1bb, #008ddc) border-box;
      -webkit-mask: linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: destination-out;
      mask-composite: exclude;
    }
  }

  .el-dropdown-menu {
    max-height: 350px;
    overflow: auto;
    background-color: transparent;
    box-shadow: none !important;
    line-height: 40px !important;
    background: var(--el-select-wrapper-background, none);
    background-size: 99.9%;
    .el-dropdown-menu__item {
      color: #fff;
      text-align: center;
      &:hover {
        background-color: rgba(101, 162, 255, 0.1); // 下拉hover背景
      }
    }
  }
}

// 去掉下拉三角
.el-dropdown__popper {
  .el-popper__arrow {
    display: none;
  }
}

.popver-tree {
  background-color: transparent !important;
  border: none !important;
  .popover-list {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #47506a;
    background: #10202ecc;
    backdrop-filter: blur(4px);
    .popover-item {
      color: #ffffff;
      cursor: pointer;
      width: 100%;
      height: 36px;
      font-size: 14px;
      display: flex;
      align-items: center;
      line-height: 30px;
      > img {
        width: 20px;
        height: 20px;
        margin: 0 12px;
      }
      &:hover {
        position: relative;
        border-radius: 4px;
        color: #38ffce;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(0, 225, 187, 0.3);
        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          border-radius: 4px;
          border: 1px solid transparent;
          background: linear-gradient(45deg, #00e1bb, #008ddc) border-box;
          -webkit-mask: linear-gradient(#fff 0 0) padding-box,
            linear-gradient(#fff 0 0);
          -webkit-mask-composite: destination-out;
          mask-composite: exclude;
          pointer-events: none; // 确保不影响文字点击
        }
      }
    }
  }
}
